package progetto1.csm.implementation;

import progetto1.csm.core.Scenario;

public final class SystemFactory {
	
	private static double TEND;
	
	public static void setTimeSimulation(double tend){
		TEND = tend;
	}
	
	public static double getTimeSimulation() {
		return TEND;
	}
	
	public static progetto1.csm.core.System create(Scenario s){
		if (s instanceof CSMScenario) {
			CSMScenario sc = (CSMScenario) s;
			CSMSystem system = new CSMSystem(sc);
			return system;
		} else {
			assert false;
			return null;
		}
	}
	
	private SystemFactory(){}	
}
